package com.zengqingfa.basic.annotation;

/**
 * @version since 1.0
 * @fileName: AnnotationDemo
 * @author: zengqf3
 * @date: 2020-9-6 8:12
 * @description:
 */
@MyAnnotation(value = "AnnotationDemo class")
public class AnnotationDemo {

    private String key;

    public AnnotationDemo(String key) {
        this.key = key;
    }

    /**
     * 对象的字符串表示
     *
     * @return
     */
    @Override
    @MyAnnotation(value = "AnnotationDemo method")
    public String toString() {
        return "AnnotationDemo{" +
                "key='" + key + '\'' +
                '}';
    }
}
